#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
	long long  a,b;
	while(scanf("%lld%lld",&a,&b)!=EOF){
		long long sum;
		sum=a*b*(a+1)*(b+1)/4;
		cout<<sum<<endl;
	}
	
}
